#pragma once
#include "FileSystem/DataManager.h"
#include "ClientServer/iCmd.h"
namespace Apo
{
class ClientSocket;
class ClientDataSocket : public iCmd
{
public:
	ClientDataSocket(ClientSocket * pClientSocket);
	~ClientDataSocket(void);
	void	init();

	void    HandlePacket(Apo::WorldPacket & recvData);

	void	HandlegetVersion(Apo::WorldPacket & recvData);
	void	SendGetVersion(uint32 version);
	void	HandleAddFile(Apo::WorldPacket & recvData);
	void   sendAddFile(const char * filename = "clientdata//hjh.txt",FileType type = File_ADD);

	void   HandleFileData(Apo::WorldPacket & recvData);
	void   sendFileData(const char * buff);

	void	HandleDeleteFile(Apo::WorldPacket & recvData);
	void   sendDeleteFile(const char * fileName);
	void	HandleAddPath(Apo::WorldPacket & recvData);
	void   sendAddPath(const char * fileName);
	void	HandleDeletePath(Apo::WorldPacket & recvData);
	void   SendDeletePath(const char * fileName);
	void	HandleModFile(Apo::WorldPacket & recvData);
	void   SendModFile(const char * fileName);

private:
	ClientSocket * m_pClientSocket;

};
}